package com.legleg.handler;

import com.legleg.data.Feed;
import com.legleg.db.FeedDao;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-12-29
 * Time: 下午1:30
 * To change this template use File | Settings | File Templates.
 */
public class FeedHandler {
    private static FeedHandler instance;
    private static Object lock = new Object();
    public static FeedHandler getInstance() {
        if(instance == null)
        {
            synchronized (lock){
                instance = new FeedHandler();
            }
        }
        return instance;
    }

    public FeedHandler() {
    }

    public List<Feed> getAllFeeds(){
        return FeedDao.queryAllFeeds();
    }
}
